/** @type import('hardhat/config').HardhatUserConfig */

require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ethers");
require('dotenv').config();

const { PRIVATE_KEY, BSC_TESTNET_URL } = process.env;

module.exports = {
  solidity: "0.8.28",
  networks: {
    hardhat: {}, // 本地网络配置
    bsctest: {
      url: "https://bsc-testnet-dataseed.bnbchain.org", // BSC 测试网 RPC
      chainId: 97, // BSC Testnet 的 Chain ID
      accounts: [process.env.PRIVATE_KEY], // 从环境变量加载私钥
    },
  },
};
